﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Rison.Web.Common;
using Rison.BusinessFacade.Common;
using Rison.BusinessFacade.Entity.XT;
using Rison.BusinessFacade.Facade.XT;
using Rison.BusinessFacade.Entity.Biz;
using Rison.BusinessFacade.Facade.Biz;
using Rison.BusinessFacade.Helper;

namespace Rison.Web.zxdc
{
    public partial class OnlineSurveyReport : PageDataViewBase
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            base.dataView = this.gvData;
                   
            base.baseFacade = new DataSourceHelperFacade(InfoCategory.在线调查);
            base.hidCurrentPageIndex = this.hidCurPageIndex;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            

            if (!this.IsPostBack)
            {
                BindData();
            }
        }

        protected override void BindData()
        {
            List<Condition> conditions = base.GetConditions();
            if (conditions == null) conditions = new List<Condition>();

            DataSet data = (baseFacade as DataSourceHelperFacade).GetAllOnlineSurvey();
            this.gvData.DataSource = data.Tables[0].DefaultView;
            this.gvData.DataBind();

            data.Dispose(); data = null;
        }


    }
}
